package SingletonPattern.singletonA;

public class test {
    public static void main(String[] args) {
        singleton instance1 = singleton.getInstance();//获取实例对象
        singleton instance2 = singleton.getInstance();//获取实例对象
        System.out.println(instance1 == instance2);//true,表明两个实例对象化相等
    }
}
